package com.domain.dao;

import com.domain.pojo.UsersHelp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UsersHelpMapper {
    int deleteByPrimaryKey(String id);

    int insert(UsersHelp record);

    int insertSelective(UsersHelp record);

    UsersHelp selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UsersHelp record);

    int updateByPrimaryKey(UsersHelp record);

    List<Map<String, Object>> selectByUsersId(@Param("userId") String userId);

    List<UsersHelp> selectHelpIdAndPublish(@Param("helpId") String helpId, @Param("publishId") String publishId);

    List<UsersHelp> selectByDistinct(@Param("publishId") String publishId);

    List<UsersHelp> selectByUesds(@Param("usersId") String usersId);

    List<Map<String, Object>> selectIndexByUsersId(@Param("usersId") String usersId);

    List<UsersHelp> selectByUesdss(@Param("usersId") String usersId);

    List<UsersHelp> selectByUesd(@Param("usersId") String usersId);


    /*h5 帮转发布详情*/
    Map<String, Object> selectByPublishIdAndHeliUsersId(@Param("publishId") String publishId, @Param("helpUserId") String helpUserId, @Param("helpType") String helpType);

    UsersHelp selects(UsersHelp u);
}